<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="images/skin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<base href="<%=basePath%>">
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
 
.contentTable,.contentTable td,.contentTable th,  {   
    border:1px solid #cccccc;   
    border-collapse:collapse;  
}   

-->
</style>

<script type="text/javascript">
function archive(id){
	//alert(id);
	if (confirm("归档后工单只能查询不能修改及删除，确定归档吗？")){		
		window.location='Request!archive?id='+id;
		return false;
	}
}
function deleteRequest(id){
	//alert(id);
	if (confirm("删除工单后不能恢复，确定删除吗？")){		
		window.location='Request!delete?id='+id+'&from=processed';
		return false;
	}
	
}
</script>
	</head>
	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="">
			<tr>
			    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
			    <td valign="top" background="images/content-bg.gif">
			    	<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				      <tr>
				        <td height="31"><div class="titlebt">已处理需求列表</div></td>
				      </tr>
			    	</table>
			    </td>
			    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
		  </tr>
		  
		  <tr >
			<td valign="middle" background="images/mail_leftbg.gif">
				&nbsp;
			</td>
			<td valign="top" bgcolor="#F7F8F9" >
				<table width="100%" border="0" frame="box" cellspacing="0" style="margin-top:10px;" class="contentTable">
						  
						  <tr>
						    <th width="6%" height="25px" class="table_content" align="center">编号</th>
						    <th width="5%" height="25px" class="table_content" align="center">地区</th>
						    <th width="10%" height="25px" class="table_content" align="center">业务号码</th>
						    <th width="12%" height="25px" class="table_content" align="center">装维人员号码</th>
						    <th width="8%" height="25px" class="table_content" align="center">支撑类别</th>
						    <th width="25%" height="25px" class="table_content" align="center">故障现象</th>
						    <th width="10%" height="25px" class="table_content" align="center">状态</th>
						    <th width="8%" height="25px" class="table_content" align="center">受理人</th>
						    <th width="16%" height="25px" class="table_content" align="center">选项</th>
						  </tr>
						  <s:iterator value="allRequests" var="request">
						  <tr>
						    <td class="table_content" align="center"><s:property value="#request.id"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.area"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.serviceNum"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.masterNum"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.supportType"/>&nbsp;</td>
						    <td class="table_content" align="center">【<s:property value="#request.productType"/>】<s:property value="#request.symptom"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property escape="false" value="#request.status"/>&nbsp;</td>
						    <td class="table_content" align="center"><s:property value="#request.operator"/>&nbsp;</td>
						    <td class="table_content" align="center">
						    	<a href="<s:url action="Request!view"><s:param name="id" value="%{#request.id}"></s:param></s:url>">查看</a>&nbsp;
						    	<a href="<s:url action="Request!edit"><s:param name="id" value="%{#request.id}"></s:param><s:param name="from" value="'processed'"></s:param></s:url>">修改</a>&nbsp;
						    	<a href="#" target="main" onclick="javascript:deleteRequest(<s:property value="%{#request.id}"/>);return false;">删除</a>&nbsp;
								<a href="#" target="main" onclick="javascript:archive(<s:property value="%{#request.id}"/>);return false;">归档</a>						    	
						    </td>
						  </tr>
						  </s:iterator>
						 </table>
			</td>
			<td background="images/mail_rightbg.gif">
				&nbsp;
			</td>
			</tr>
			<tr>
			    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
			    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
			    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
		  	</tr>
		</table>
	</body>

</html>
